replaceAccessibilityAction
open fun replaceAccessibilityAction(@NonNull view: View, @NonNull replacedAction: AccessibilityNodeInfoCompat.AccessibilityActionCompat, @Nullable label: CharSequence, @Nullable command: AccessibilityViewCommand)(source)
Replaces an action. This can be used to change the default behavior or label of the action specified. If label and command are both null
, the action will be removed.
Parameters
view
The view.
replacedAction
The action to be replaced.
label
The user facing description of the action or null
.
command
The command performed when the service requests the action.
Compatibility:
- API <21: No-op